<?php	
function getWeek()
{
	$dbconnect = DBConnect::getInstance();
	$currentWeek = $dbconnect->selectMaxWeek();
	$currentWeek = intval(mysql_result($currentWeek, 0));
	$currentWeek++;
	return $currentWeek;
}

if(isset($_GET['week'])){
	$week = $_GET['week'];
}
else {
	$week = getWeek();
}
?>